<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>

    div{
        width:800px;
        border:1px solid red;
    }

    @keyframes x {
        from{margin-left:0px;}
        to{margin-left:500px;}        
    }

    img{
        animation:x 3s linear 2; /*从左向右移动 3s内执行2次*/
    }
</style>
<body>
    
    <div>
        <img src="img/list-img-1.gif">
    </div>
</body>
</html>